package com.zmm.myyimixian.ui.activity.main.dingdan;


import android.support.design.widget.TabLayout;
import android.support.v4.app.Fragment;
import android.support.v4.view.ViewPager;
import android.view.View;

import com.zmm.myyimixian.R;
import com.zmm.myyimixian.base.BaseFragment;
import com.zmm.myyimixian.ui.adapter.DingDanAdapter;

import butterknife.BindView;

/**
 * A simple {@link Fragment} subclass.
 */
public class DingDanFragment extends BaseFragment {


    @BindView(R.id.ding_dan_tab)
    TabLayout dingDanTab;
    @BindView(R.id.ding_dan_vp)
    ViewPager dingDanVp;

    @Override
    public void initView(View view) {
        dingDanVp.setAdapter(new DingDanAdapter(getChildFragmentManager()));
        dingDanTab.setupWithViewPager(dingDanVp,true);
    }

    @Override
    public int getLayoutId() {
        return R.layout.fragment_ding_dan;
    }

}
